const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
  // 改端口
  devServer: {
    port: 8081,
    proxy: {
      '/api': {
        target: 'http://localhost:8080/api',
        changeOrigin: true,
        pathRewrite: {
          '^/api': ''
        }
      }
    }
  },
  // @ 符号指向 src 目录
  configureWebpack: {
    resolve: {
      alias: {
        '@': require('path').join(__dirname, 'src')
      }
    }
  }
})
